package com.agmte.api.app.entity.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ApiParamInfo {

    @NotBlank(message = "参数名称不能为空")
    @ApiModelProperty("参数名称")
    private String name;

    @NotBlank(message = "参数编码不能为空")
    @ApiModelProperty("参数编码")
    private String code;

    @NotNull(message = "参数数据类型不能为空")
    @ApiModelProperty("参数数据类型")
    private ParamDataType datatype;

    @ApiModelProperty("是否必须")
    private boolean required;

    @ApiModelProperty(value = "示例", example = "示例")
    private Object example;

}
